<?php

/**
 * This file is part of the Framework03 PHP framework.
 * @author Walter Tamboer
 * @package Framework03
 */

final class FW_Version
{
    /**
     * @const The current framework version.
     */
    const VERSION = '0.4';
    
    /**
     * Comapres the given version with the current framework version.
     * @param string $version The version to compare with.
     * @return int Returns -1 when the version if smaller, 0 when equal or +1 when greater than.
     */
    public static function compareVersion($version)
    {
        return version_compare($version, self::VERSION);
    }
}
